import { createApp } from 'vue'
import App from './App.vue'
// @ts-ignore
import ElementPlus from 'element-plus';
import './style/theme/index.css'

import router from './router'
import store from './store'
import ZhLocale from 'element-plus/lib/locale/lang/zh-CN'; // 中文
import EhLocale from 'element-plus/lib/locale/lang/en'; // 英文
import i18n from "../lang"; //引入i18n组件

//控制 element-plus 组件语言
let locale = '';

//naive ui
import {
    // create naive ui
    create,
    // component
    NButton
} from 'naive-ui'

const naive = create({
    components: [NButton]
})



const app = createApp(App)


app.use(naive)
app.use(ElementPlus, {
    i18n: i18n.global.t,
})

app.use(router)
app.use(store)
app.use(i18n)


app.mount('#app')
